var _list = [23,4,56,123,6,76,8,345,67,21,98,1235,16432,85,25,135,79789,434,154,38,3584,1846,7897832];

function bubbleSort(arr)
{
	for(var i=0; i < arr.length; i++)
	{
		for(var j=0; j<arr.length-1-i; j++)
		{
			if(arr[j]>arr[j+1])
			{
				var a = arr[j+1];
				arr[j+1] = arr[j];
				arr[j] = a;
			}
		}
	}
	return arr;
}

console.time("end");
console.log(bubbleSort(_list));
console.timeEnd("end");